home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / Simple Atom Extender / DirectCopySCExt.r < prev    next >
Encoding:
Text File  |  1996-09-26  |  1.5 KB  |  49 lines  |  [TEXT/MPS ]

  1. //
  2. //    File:        InstaCompOneSCExt.r
  3. //
  4. //    This file contains the 'scex' and 'scvc' definitions for the Direct Copy ScriptCheck extension.
  5. //    A ScriptCheck extension needs to contain two code resources:
  6. //                
  7. //                1) A code resource referred to by the 'scex' resource.
  8. //                   This code resource contains a File/Resource Info
  9. //                   function which provides ScriptCheck with the file's
  10. //                   Finder attributes, data fork size, resource fork size,
  11. //                   creation date, and modification date.  The source code
  12. //                   for our example function can be found in the file
  13. //                   "DirectCopyScriptCheckExt.c".
  14. //
  15. //                2) A code resource referred to by the 'scvc' resource.
  16. //                   This code resource contains a Version Info
  17. //                   function which provides ScriptCheck with the source 
  18. //                   file's version number.  The source code for our example 
  19. //                   function can be found in the file "DirectCopySCVersExt.c".
  20. //
  21. //  For more information on writing ScriptCheck Extensions see the ScriptCheck documentation
  22. //    included in the Installer SDK.
  23. //
  24. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  25. //
  26. //
  27.  
  28. #include "ScriptCheckTypes.r"
  29.  
  30. resource 'scex' (129) {
  31.     format0 {
  32.         'scfn',                                // file/resource info code resource type
  33.         129,                                // file/resource info code resource ID
  34.         0,
  35.         24000,
  36.         "DirectCopy ScriptCheck Extension"
  37.     }
  38. };
  39.  
  40. resource 'scvc' (129) {
  41.     format0 {
  42.         'scfn',                                // version info code resource type
  43.         130,                                // version info code resource ID
  44.         0,
  45.         24000,
  46.         "DirectCopy ScriptCheck Extension"
  47.     }
  48. };
  49.